package com.zjk;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: gfk
 * @create: 2022/10/14
 * @Description:
 * @FileName: Result
 * @History:
 * @自定义内容：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result implements Serializable {

    private boolean success;

    private  Integer code;

    private String msg;

    public static Result SUCCESS(){
        return new Result(true,1,"操作成功");
    }
    public static Result FAIL(){
        return new Result(false,2,"操作失败");
    }

}
